<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="../node_modules/slick-carousel/slick/slick.css">
    <link rel="stylesheet" href="../node_modules/slick-carousel/slick/slick-theme.css">
    <link rel="stylesheet" href="style.css">
    <title>Document</title>
</head>

<body>
    <div class="blue">
        <div class="content">
            <h2>Variable Width</h2>
            <div class="slider variable-width">
                <div style="width: 200px;">
                    <p>200</p>
                </div>
                <div style="width: 175px;">
                    <p>175</p>
                </div>
                <div style="width: 150px;">
                    <p>150</p>
                </div>
                <div style="width: 300px;">
                    <p>300</p>
                </div>
                <div style="width: 225px;">
                    <p>225</p>
                </div>
                <div style="width: 125px;">
                    <p>125</p>
                </div>
            </div>
        </div>
    </div>

    <script src="../node_modules/jquery/dist/jquery.min.js"></script>
    <script src="../node_modules/slick-carousel/slick/slick.js"></script>
    <script>
        $('.variable-width').slick({
            dots: true,
            infinite: true,
            speed: 300,
            slidesToShow: 1,
            centerMode: true,
            variableWidth: true,
            autoplay: true,
            autoplaySpeed: 2000,
        });
    </script>

</body>

</html>